# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route

# define our routes
game_routes = [
               build_route('restart','RestartHandler'),
               build_route('entrancehall','EntranceHallHandler'),
               build_route('entrancehall2','EntranceHall2Handler'),
               build_route('bar','BarHandler'),
               build_route('dancefloor','DanceFloorHandler'),
               build_route('food','FoodHandler'),
               build_route('restroom','RestroomHandler'),
               build_route('tables','TablesHandler'),
               build_route('wall','WallHandler'),
               build_route('loserroom', 'LoserRoomHandler'),
               build_route('titlescreen','TitleScreenHandler'),
               build_route('restroom2','Restroom2Handler'),
               build_route('restroomladies','RestroomLadiesHandler'),
               build_route('victory_room','VictoryRoomHandler'),
               default_route('titlescreen','TitleScreenHandler')   
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
